package lj.courseinterect.dao.i;

import lj.courseinterect.entity.CourseInfo;
import lj.courseinterect.entity.Student;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;

/**
 * Created by CatoldCui on 2015/4/20.
 */
public interface CourseInfoDao extends Dao<CourseInfo, Long>{
    /**
     * 教师编号查询
     * @param teaId
     * @return
     */
    List<CourseInfo> queryByTeaId(Long teaId);

    /**
     * 通过课程名称查询课程
     * @param name
     * @return
     */
    CourseInfo findByCouName(String name);
}
